export const commonCheckPermission = <T>(permissions: T[], allows: T[]) => {
  if (import.meta.env.MODE === 'development') {
    return true;
  }

  return allows?.every((item: T) => permissions?.includes(item));
};
